package com.jic.market.api.manage;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.PatchGrouponThemeRequest;
import com.jic.market.request.PromotionMerchantRequest;
import com.jic.market.request.PromotionMerchantRequestList;
import com.jic.market.request.PromotionRequest;
import com.jic.market.request.manager.base.PromotionMerchantAndStoreIsNullRequest;
import com.jic.market.response.PageResponse;
import com.jic.market.response.PatchGrouponThemeResponse;
import com.jic.market.response.PromotionMerchantResponse;
import com.jic.market.response.PromotionResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author guohuayong
 * @date: 2020年01月14日
 */
public interface PromotionMerchantApi {
    RestResult<Boolean> merchantAndStoreIsNull(PromotionMerchantAndStoreIsNullRequest request);
    RestResult<PageResponse<PromotionMerchantResponse>> list(PromotionMerchantRequest request);
    RestResult<PromotionMerchantResponse> detail(HttpServletRequest servletRequest, PromotionRequest request);
    RestResult<Integer> deleteByPromotionId(PromotionMerchantRequest request);
    RestResult<Integer> saveBatchByPromotionId(PromotionMerchantRequestList p);
    RestResult<Integer> deleteById(PromotionMerchantRequest request);
}
